@import 'mixin.scss';
@import 'color.scss';
$share_white:"../../assets/images/share_white.png";
$share_black:"../../assets/images/share.png";
$arrow_back_white:"../../assets/images/arrow_back_white.png";
$arrow_back_black:"../../assets/images/arrow_back.png";
$pro_icons:"../../assets/images/pro_icons.png";
$pro_detail_icons:"../../assets/images/pro_detail_icons.png";
$share_icons:"../../assets/images/share_icons.png";
.pro {
    //头部
    &-default-head,
    &-scroll-head {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding-left: rem(30px);
        padding-right: rem(30px);
        height: rem(90px);
        line-height: rem(90px);
    }
    &-default-head {
        padding-top: rem(14px);
    }
    &-scroll-head {
        border-bottom: 1px $border-color solid;
        background: $color-white
    }
    &-detail-header {
        ul {
            @include flex;
            height: rem(98px);
            text-align: center;
        }
        li {
            display: inline-block;
            margin: 0 rem(25px);
            font-size: rem(32px);
            color: #606a7c;
            &.current {
                color: $subject-color;
                border-bottom: rem(4px) solid $subject-color;
            }
        }
        a {
            display: inline-block;
            background-repeat: no-repeat;
            background-position: center;
            overflow: hidden;
            &.pro {
                &-back-default,
                &-share-default {
                    width: rem(62px);
                    height: rem(62px);
                    border-radius: 100%;
                    background-color: rgba(0, 0, 0, .4);
                }
                &-back-default {
                    background-image: url($arrow_back_white);
                    background-size: rem(18px) rem(32px);
                }
                &-back-black {
                    width: rem(18px);
                    height: rem(32px);
                    border-radius: 0;
                    background-color: transparent;
                    background-image: url($arrow_back_black);
                    background-size: rem(18px) rem(32px);
                }
                &-share-default {
                    background-image: url($share_white);
                    background-size: rem(32px) rem(37px);
                }
                &-share-black {
                    width: rem(32px);
                    height: rem(37px);
                    border-radius: 0;
                    background-color: transparent;
                    background-image: url($share_black);
                    background-size: rem(32px) rem(37px);
                }
            }
        }
    }
    //商品
    &-detail {
        padding-bottom: rem(94px);
        &-info {
            .swiper-pagination {
                width: auto;
                left: auto;
                right: rem(30px);
                color: #fff;
                font-size: rem(24px);
                letter-spacing: -1px;
                padding: rem(10px) rem(25px);
                border-radius: rem(100px);
                background-color: rgba(0, 0, 0, .6);
            }
        }
        &-name {
            padding: rem(38px) rem(30px) 0;
            margin-bottom: rem(20px);
            line-height: 1.5;
            background-color: $color-white;
            .price {
                @include flex;
                font-size: rem(36px);
                font-weight: bold;
            }
        }
    }
    &-name {
        font-size: rem(34px);
        font-weight: bold;
    }
    &-like {
        font-size: rem(28px);
        &::after {
            content: '';
            display: inline-block;
            margin-left: rem(10px);
            width: rem(26px);
            height: rem(23px);
            background: url($pro_icons) no-repeat;
            @include img-position(0, rem(-140px));
            background-size: rem(48px) rem(165px);
        }
    }
    &-select {
        padding: 0 rem(30px);
        margin-bottom: rem(20px);
        height: rem(85px);
        color: $color-666;
        font-size: rem(28px);
        line-height: rem(85px);
        background-color: $color-white;
        span {
            display: inline-block;
            margin-left: rem(10px);
            color: #333;
        }
        &::before {
            content: '';
            float: right;
            display: inline-block;
            margin-top: rem(30px);
            width: rem(14px);
            height: rem(25px);
            background: url($pro_detail_icons) no-repeat;
            @include img-position(0, rem(-125px));
            background-size: rem(44px) rem(270px);
        }
    }
    &-review {
        &::before {
            content: normal;
        }
        a {
            color: #acb3c0;
        }
    }
    &-seller {
        padding: rem(30px);
        margin-bottom: rem(20px);
        background-color: $color-white;
        cursor: pointer;
        .seller {
            &-logo {
                width: rem(98px);
                height: rem(88px);
            }
            &-name {
                @include flex;
                padding-left: rem(22px);
                font-size: rem(30px);
            }
            &-link {
                color: $subject-color;
                font-size: rem(28px);
                &::after {
                    content: '';
                    display: inline-block;
                    vertical-align: bottom;
                    margin-left: rem(15px);
                    width: rem(14px);
                    height: rem(25px);
                    background: url($pro_detail_icons) no-repeat;
                    @include img-position(0, rem(-125px));
                    background-size: rem(44px) rem(270px);
                }
            }
        }
    }
    // 详情
    &-detail-description {
        padding: rem(90px) 0 0;
        img {
            display: block;
            width: 100%;
        }
    }
    // 商品 评价
    &-detail-reviews {
        padding: rem(90px) 0 0;
        .empty {
            padding-top: rem(215px);
            text-align: center;
            font-size: rem(30px);
            .empty-reviews {
                margin: 0 auto rem(30px);
                width: rem(201px);
                height: rem(201px);
                background: url(../../assets/images/empty_bg.png) no-repeat;
                @include img-position(0, rem(-603px));
                background-size: rem(201px) auto;
            }
        }
    }
    //弹窗 商品参数
    &-information-pop {
        background-color: $color-white;
        .title {
            border-bottom: 1px $border-color solid;
            height: rem(92px);
            font-size: rem(30px);
            text-align: center;
            line-height: rem(92px);
        }
        ul {
            padding: 0 rem(30px);
            height: rem(408px);
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }
        li {
            display: -webkit-flex;
            display: -webkit-box;
            display: -moz-box;
            display: -ms-flexbox;
            display: flex;
            align-items: center;
            padding: rem(10px) 0;
            border-bottom: 1px $border-color solid;
            font-size: rem(30px);
            line-height: rem(80px);
            span {
                display: inline-block;
                margin-right: rem(35px);
                width: 22%;
                color: $color-999;
                line-height: rem(40px);
            }
        }
    }
    // 弹窗 商品属性选择
    &-buy-pop {
        background-color: $color-white;
        a.close {
            position: absolute;
            top: rem(10px);
            right: rem(10px);
            color: #ACB3C1;
            font-size: rem(50px);
        }
    }
    &-buy-info {
        padding: rem(30px) 0 rem(95px);
        .thumb,
        .pro-basic {
            display: inline-block;
        }
        .thumb {
            position: relative;
            padding: rem(10px) 0;
            margin-top: rem(-70px);
            border-radius: rem(10px);
            width: rem(205px);
            vertical-align: middle;
            background-color: $color-white;
            overflow: hidden;
        }
        .pro-basic {
            vertical-align: top;
            .price {
                margin-top: 0;
            }
            p {
                font-size: rem(28px);
                margin-bottom: rem(15px);
            }
        }
    }
    &-footer {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 2;
        background-color: $color-white;
        width: 100%;
        height: rem(95px);
        a {
            display: block;
            float: left;
            width: 50%;
            height: 100%;
            line-height: rem(95px);
            text-align: center;
            font-size: rem(32px);
            &.cart {
                background-color: $border-color;
            }
            &.buy {
                color: $color-white;
                background-color: $subject-color;
            }
        }
        .pro-icons {
            width: 35%;
            a:first-child {
                border-right: 1px $border-color solid;
            }
            i {
                display: inline-block;
                margin-top: rem(29px);
                width: rem(44px);
                background: url($pro_detail_icons) no-repeat;
                background-size: rem(44px) rem(270px);
                &.like-icon {
                    height: rem(38px);
                    @include img-position(0, rem(-42px));
                }
                &.like-icon-checked {
                    background: url(../../assets/images/collected_icon.png) no-repeat;
                    background-size: rem(44px) rem(38px);
                }
                &.cart-icon {
                    height: rem(39px);
                    @include img-position(0, rem(-84px));
                }
            }
        }
        .pro-btn {
            width: 65%;
        }
    }
}

// 商品属性弹窗  属性列表
.sku-list-wrap {
    margin-top: rem(10px);
    border-top: 1px $border-color solid;
    height: rem(300px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    li {
        padding: rem(20px) rem(30px);
        border-bottom: 1px $border-color solid;
        h2 {
            font-size: rem(28px);
            color: $color-666;
        }
        .items {
            a {
                display: inline-block;
                margin: rem(20px) rem(20px) 0 0;
                padding: rem(15px);
                border: 1px $border-color solid;
                border-radius: rem(10px);
                font-size: rem(26px);
                background-color: $border-color;
                &.current {
                    border-color: $subject-color;
                    color: $subject-color;
                    background-color: transparent;
                }
            }
        }
        .number {
            margin-top: rem(20px);
        }
        &:last-child {
            border-bottom: none;
        }
    }
}

// 分享弹窗
.share {
    &-box-warp {
        width: 100vw;
        padding: 0 rem(20px);
    }
    &-box-list {
        margin-bottom: rem(20px);
        padding: rem(60px) 0;
        border-radius: rem(20px);
        background-color: $color-white;
        li {
            @include flex;
            text-align: center;
        }
        a {
            &::before {
                content: '';
                display: block;
                width: rem(80px);
                height: rem(69px);
                background: url($share_icons) no-repeat;
                background-size: rem(81px) rem(360px);
                margin: 0 auto;
            }
            &.icons {
                &-wechat {
                    &::before {
                        @include img-position;
                    }
                }
                &-qq {
                    &::before {
                        @include img-position(0, rem(-145px));
                    }
                }
                &-sina {
                    &::before {
                        @include img-position(0, rem(-217px));
                    }
                }
                &-qzone {
                    &::before {
                        @include img-position(0, rem(-293px));
                    }
                }
            }
            span {
                display: block;
                margin-top: rem(30px);
            }
        }
    }
    &-cancle {
        margin-bottom: rem(20px);
        height: rem(110px);
        line-height: rem(110px);
        color: #157efb;
        font-size: rem(28px);
        text-align: center;
        border-radius: rem(20px);
        background-color: $color-white;
        cursor: pointer;
    }
}

// 底部按钮
.conform-btn a {
    display: block;
    height: rem(94px);
    text-align: center;
    font-size: rem(32px);
    color: $color-white;
    line-height: rem(94px);
    background-color: $subject-color;
}